package com.ygqh.baby.model.wdt.qyb;

import java.net.URLDecoder;

import com.foxinmy.weixin4j.util.StringUtil;

public class PushOrderErrorInfo {
	private String tid;
	private String error;

	public PushOrderErrorInfo() {
		super();
	}

	public PushOrderErrorInfo(String tid, String error) {
		super();
		this.tid = tid;
		this.error = error;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public String getError() {
		if (StringUtil.isBlank(error)) {
			error = "未知错误";
		}
		return URLDecoder.decode(error);
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public String toString() {
		return "PushOrderErrorInfo [tid=" + tid + ", error=" + error + "]";
	}

}
